package cn.broadmax.boot.modules.aj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 卷宗管理
 * </p>
 *
 * @author jexx
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JzManage对象", description="卷宗管理")
public class JzManage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "案卷名称")
    private String name;

    @ApiModelProperty(value = "案卷编号")
    private String code;

    @ApiModelProperty(value = "案卷类型")
    private String ajType;

    @ApiModelProperty(value = "卷宗类型")
    private String jzType;

    @ApiModelProperty(value = "登记人")
    private String registrant;

    @ApiModelProperty(value = "登记单位")
    private String applyUnit;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "登记时间")
    private LocalDateTime registDate;

    @ApiModelProperty(value = "存放位置")
    private String position;

    @ApiModelProperty(value = "卷宗描述")
    private String description;

    @ApiModelProperty(value = "卷宗状态")
    private String status;

    @ApiModelProperty(value = "申请人")
    private String tempApplyMan;

    @ApiModelProperty(value = "申请单位")
    private String tempApplyUnit;

    @ApiModelProperty(value = "接收人")
    private String tempRecipient;

    @ApiModelProperty(value = "接收单位")
    private String tempRecUnit;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "申请时间")
    private LocalDateTime tempApplyTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预计归还时间")
    private LocalDateTime tempPreBackTime;

    @ApiModelProperty(value = "申请事由")
    private String tempReason;

    @ApiModelProperty(value = "归还人")
    private String tempBackMan;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "归还时间")
    private LocalDateTime tempBackTime;

    @ApiModelProperty(value = "申请人")
    private String everApplyMan;

    @ApiModelProperty(value = "申请单位")
    private String everApplyUnit;

    @ApiModelProperty(value = "接收人")
    private String everRecipient;

    @ApiModelProperty(value = "接收单位")
    private String everRecUnit;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "申请时间")
    private LocalDateTime everApplyTime;

    @ApiModelProperty(value = "申请事由")
    private String everReason;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUserId;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private Boolean del;



}
